package cn.lyjuan.aliyun.mq.conf.java.test;

import cn.lyjuan.aliyun.mq.conf.config.ADynamicConfig;
import com.aliyun.openservices.ons.api.MessageListener;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Configuration;

/**
 * Created by chad on 2016/10/13.
 */
@Configuration
public class DynamicConfigImpl extends ADynamicConfig
{
    @Override
    protected String getUniqueBaseName()
    {
        return "clean";
    }

    public DynamicConfigImpl(ConfigurableApplicationContext applicationContext, @Value(MQ_USER_CONF_EXPRESS) String mqUserProFilePath)
    {
        super(applicationContext, mqUserProFilePath);
    }


    @Override
    public Class<? extends MessageListener> messageListenerClass()
    {
        return CleanMessageTest.MQMessageListener.class;
    }
}
